package com.ruoyi.common.constant.process;

public class ProcessConstants {

    public enum CleanRecordTypeEnum {

        Thermal("热力消毒记录", "Thermal"),
        Chemistry("化学消毒记录", "Chemistry"),
        Place("场所消毒记录", "Place"),
        ;

        private final String typeName;
        private final String typeValue;

        CleanRecordTypeEnum(String typeName, String typeValue) {
            this.typeName = typeName;
            this.typeValue = typeValue;
        }

        public String getTypeName() {
            return this.typeName;
        }

        public String getTypeValue() {
            return this.typeValue;
        }

        public static String getTypeNameByValue(String typeValue) {
            for (CleanRecordTypeEnum purchaseTypeEnum : CleanRecordTypeEnum.values()) {
                if (purchaseTypeEnum.getTypeValue().equals(typeValue)) {
                    return purchaseTypeEnum.getTypeName();
                }
            }
            return null;
        }
    }


}
